/**
 * 文本链接 a
 */
// 保证所有a标签都有href
$("a").each(function() {

	var aHref = this.href;
	if (aHref == "" || aHref == undefined) {
		$(this).attr("href", "javascript:void(0)");
	}

	// 给a标签加title
	var aTitle = this.title;
	var aText = this.text;

	if (aTitle == "" || aTitle == undefined) {
		if (aText != "" || aText != undefined) {
			$(this).attr("title", $.trim(aText));
		}
	}

});

//select下的option添加title
$("option").each(function(){
	var oTitle = this.title;
	var oText = this.text;
	if( oTitle=="" || oTitle==undefined ){
		if( oText!="" || oText!=undefined ){
			$(this).attr("title",$.trim(oText));
		}
	}
});


//为目录页的翻页添加title
if( $(".CurrChnlCls").length > 0 ){

	if( $("#form_cds #keyword").length > 0 ){
		$("#form_cds input:last").attr({'title':'请输入搜索内容', 'placeholder':'请输入搜索内容'});
		$('img[src="../../images/gdj_xwcbgdj_sousuo.jpg"]').attr('title','搜索').attr('alt','搜索');
		$('img[src="../images/gdj_xwcbgdj_sousuo.jpg"]').attr('title','搜索').attr('alt','搜索');
	}
	
	if( $('.page').length > 0 ){
		$('.page #num').attr({'title':'页数', 'placeholder':'页数'});
		$('.page .9ptb input[type="submit"]').attr({'title':'跳转按钮', 'placeholder':'跳转按钮'});
	}

}



